<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Sky</title>
    <link type="text/css" rel="stylesheet" href="${basePath}css/bootstrap3.3.0/bootstrap-sky.css"  />
    <script type="text/javascript" src="${basePath}js/jquery-1.8.3.min.js" ></script>
    <style>
        .vtable .bsp-btn{
            width: 100px;
            height: 50px;
            margin: 3px;
        }
    </style>
</head>
<body>

<div class="" style="width: 100%;height:50px;">
    <input class="bsp-btn bsp-btn-primary"  type="button" value="点1" />
</div>

<div class="vtable" style="width:600px;height:600px;">

   <#-- <input class="bsp-btn bsp-btn-success"    type="button" value="空闲" />
    <input class="bsp-btn bsp-btn-danger"    type="button" value="进行中" />-->

</div>


<div class="vProduct" style="width:600px;height:600px;">


</div>


<script>

    loadTables();
    function loadTables() {
        $.ajax({
            url : "${basePath}api/MealLocation_mealLocations",
            data : {
                pageNo:1,
                row:100
            },
            dataType :"JSON",
            cache : false,
            type : "POST",
            success : function(dat){
                if(dat.code==1){
                    var html ='';
                    $(dat.data).each(function(index,bean){
                        if(bean.locationStatus ==1){
                            html += '<input class="bsp-btn bsp-btn-success"  type="button" value="'+bean.locationName+'" />';
                        }else if (bean.locationStatus ==3){
                            html += '<input class="bsp-btn bsp-btn-danger"   type="button" value="'+bean.locationName+'" />';
                        }
                    });
                    $('.vtable').html(html);
                }
            }
        });
    }

</script>

</body>
</html>